package cn.sx.entity;

/*
 *@program:sx_emal_ssm
 *@author: sx
 *@desc: 管理员实体类
 *@Time: 2020/9/8  15:13
 */

import org.springframework.stereotype.Component;

@Component
public class Admins {
    private int id;//编号
    private String username;//用户名
    private String password;//密码

    public Admins() {
    }

    public Admins(int id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }

    @Override
    public String toString() {
        return "Admins{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
